﻿

using IotContract.Enums;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Clients;
/// <summary>
/// 客户端控制命令
/// </summary>
[ProtoContract]
public class ClientControlCommand:IClientCommand
{
    /// <summary>
    /// 控制类型
    /// </summary>
    [ProtoMember(1)]
    public ProgramControlType  ControlType { get; set; }
    /// <summary>
    /// 控制设备
    /// </summary>
    [ProtoMember(2)]
    public long EquipId { get; set; }
    /// <summary>
    /// 控制客户端
    /// </summary>
    [ProtoMember(3)]
    public long ProgramId { get; set; }

    [ProtoMember(4)]
    public string Id { get; set; } = Guid.NewGuid().ToString();
    /// <summary>
    /// 协议类型
    /// </summary>
    [ProtoMember(5)]
    public string ProtobufType { get; set; }
}
